package com.gl.saasservice.announcement.entity;

import com.gl.saasservice.entity.IdEntity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/*
 *公告管理表
 */
@Entity
@Table(name = "saas_announcement")
public class Announcement extends IdEntity {
        /*
        *组织id
        */
        @Column(name = "org_id", nullable = true)
        private Long orgId;
        /*
        *类型：1企业公告 2社区公告 3小区公告 4平台广告
        */
        @Column(name = "type", nullable = true)
        private Integer type;
        /*
        *标题
        */
        @Column(name = "title", nullable = true)
        private String title;
        /*
        *首页图
        */
        @Column(name = "home_pic", nullable = true)
        private String homePic;
        /*
        *内容
        */
        private String content;
        /*
        *展示限制：0 APP不展示  1 无限制
        */
        @Column(name = "status", nullable = true)
        private Integer status;
        /*
        *发布社区：区域社区
        */
        @Column(name = "area_id", nullable = true)
        private Long areaId;

        /*
        *小区Id
        */
        @Column(name = "community_id", nullable = true)
        private String communityId;
        /*
        *操作人
        */
        @Column(name = "operation_id", nullable = true)
        private String operationId;
        /*
        *发布时间
        */
        @Column(name = "release_time", nullable = true)
        private Date releaseTime;
        public Long getOrgId() {
            return orgId;
        }

        public void setOrgId(Long orgId) {
            this.orgId = orgId;
        }

        public Integer getType() {
            return type;
        }

        public void setType(Integer type) {
            this.type = type;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public String getHomePic() {
            return homePic;
        }

        public void setHomePic(String homePic) {
            this.homePic = homePic;
        }
        @Column(name = "content", nullable = true,columnDefinition = "TEXT")
        public String getContent() {
            return content;
        }

        public void setContent(String content) {
            this.content = content;
        }

        public Integer getStatus() {
            return status;
        }

        public void setStatus(Integer status) {
            this.status = status;
        }

        public Long getAreaId() {
            return areaId;
        }

        public void setAreaId(Long areaId) {
            this.areaId = areaId;
        }

    public String getCommunityId() {
        return communityId;
    }

    public void setCommunityId(String communityId) {
        this.communityId = communityId;
    }

    public String getOperationId() {
            return operationId;
        }

        public void setOperationId(String operationId) {
            this.operationId = operationId;
        }

    public Date getReleaseTime() {
            return releaseTime;
        }

        public void setReleaseTime(Date releaseTime) {
            this.releaseTime = releaseTime;
        }

}
